<?php

/**
 * 对象转换为数组
 * 
 * 1，私有属性前面加上类名
 * 2，受保护属性前面加上*
 */

class Base {
    private $A;
}

class Child extends Base {
    private $A = 'child private a';
    public $AA = 'child public aa';
    protected $pro;
    
    public static $stat = 'static';
    const CON = 'CONST';
}

echo '<pre>';
$child = new Child();
var_dump($child);

var_dump((array)$child);
